<h2>Pet List</h2>

<div class="actionBar">
</div>

<?php $this->widget('CLinkPager',array('pages'=>$pages)); ?>

<?php foreach($petList as $n=>$model): ?>
<div class="item">
<?php echo CHtml::encode($model->getAttributeLabel('id')); ?>:
<?php echo CHtml::encode($model->id); ?>
<br/>
<?php echo CHtml::encode($model->getAttributeLabel('name')); ?>:
<?php echo CHtml::encode($model->name); ?>
<br/>
<?php echo CHtml::encode($model->getAttributeLabel('userName')); ?>:
<?php echo CHtml::encode($model->userName); ?>
<br/>
<?php echo CHtml::encode($model->getAttributeLabel('categoryId')); ?>:
<?php echo CHtml::encode($model->categoryId); ?>
<br/>
<?php echo CHtml::encode($model->getAttributeLabel('parentId')); ?>:
<?php echo CHtml::encode($model->parentId); ?>
<br/>
<?php echo CHtml::encode($model->getAttributeLabel('race')); ?>:
<?php echo CHtml::encode($model->race); ?>
<br/>
<?php echo CHtml::encode($model->getAttributeLabel('feature')); ?>:
<?php echo CHtml::encode($model->feature); ?>
<br/>
<?php echo CHtml::encode($model->getAttributeLabel('initEndurance')); ?>:
<?php echo CHtml::encode($model->initEndurance); ?>
<br/>
<?php echo CHtml::encode($model->getAttributeLabel('initStrength')); ?>:
<?php echo CHtml::encode($model->initStrength); ?>
<br/>
<?php echo CHtml::encode($model->getAttributeLabel('initDexterity')); ?>:
<?php echo CHtml::encode($model->initDexterity); ?>
<br/>
<?php echo CHtml::encode($model->getAttributeLabel('initSpirit')); ?>:
<?php echo CHtml::encode($model->initSpirit); ?>
<br/>
<?php echo CHtml::encode($model->getAttributeLabel('endurance')); ?>:
<?php echo CHtml::encode($model->endurance); ?>
<br/>
<?php echo CHtml::encode($model->getAttributeLabel('strength')); ?>:
<?php echo CHtml::encode($model->strength); ?>
<br/>
<?php echo CHtml::encode($model->getAttributeLabel('dexterity')); ?>:
<?php echo CHtml::encode($model->dexterity); ?>
<br/>
<?php echo CHtml::encode($model->getAttributeLabel('spirit')); ?>:
<?php echo CHtml::encode($model->spirit); ?>
<br/>
<?php echo CHtml::encode($model->getAttributeLabel('hpMax')); ?>:
<?php echo CHtml::encode($model->hpMax); ?>
<br/>
<?php echo CHtml::encode($model->getAttributeLabel('hp')); ?>:
<?php echo CHtml::encode($model->hp); ?>
<br/>
<?php echo CHtml::encode($model->getAttributeLabel('mpMax')); ?>:
<?php echo CHtml::encode($model->mpMax); ?>
<br/>
<?php echo CHtml::encode($model->getAttributeLabel('mp')); ?>:
<?php echo CHtml::encode($model->mp); ?>
<br/>
<?php echo CHtml::encode($model->getAttributeLabel('attack')); ?>:
<?php echo CHtml::encode($model->attack); ?>
<br/>
<?php echo CHtml::encode($model->getAttributeLabel('defence')); ?>:
<?php echo CHtml::encode($model->defence); ?>
<br/>
<?php echo CHtml::encode($model->getAttributeLabel('hitRate')); ?>:
<?php echo CHtml::encode($model->hitRate); ?>
<br/>
<?php echo CHtml::encode($model->getAttributeLabel('dodge')); ?>:
<?php echo CHtml::encode($model->dodge); ?>
<br/>
<?php echo CHtml::encode($model->getAttributeLabel('level')); ?>:
<?php echo CHtml::encode($model->level); ?>
<br/>
<?php echo CHtml::encode($model->getAttributeLabel('xp')); ?>:
<?php echo CHtml::encode($model->xp); ?>
<br/>
<?php echo CHtml::encode($model->getAttributeLabel('attackSkills')); ?>:
<?php echo CHtml::encode(serialize($model->attackSkills)); ?>
<br/>
<?php echo CHtml::encode($model->getAttributeLabel('helpSkills')); ?>:
<?php echo CHtml::encode(serialize($model->helpSkills)); ?>
<br/>
<?php echo CHtml::encode($model->getAttributeLabel('createDt')); ?>:
<?php echo CHtml::encode($model->createDt); ?>
<br/>
<?php echo CHtml::linkButton('Delete',array(
	'href'=>array('deletepet'),
	'params'=>array('id'=>$model->id),
	'confirm'=>"Are you sure to delete {$model->name}?")); ?>
<br/>
<?php echo CHtml::linkButton('SetActive',array(
	'href'=>array('activatepet'),
	'params'=>array('id'=>$model->id))); ?>
<br />

</div>
<?php endforeach; ?>
<br/>
<?php $this->widget('CLinkPager',array('pages'=>$pages)); ?>
